package syntax;

public class B extends A {

  public String name = "B";

  public String getName() {
    return name;
  }

  public static void main(String[] args) {
    A a = new B();
    System.out.println(a.name);

  }

}
